package com.business.bean.system;

import java.util.ArrayList;
import java.util.List;

import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author fengjian E-mail: 9110530@qq.com
 * @version 创建时间：2018年7月30日
 */
@Table(name = "SYS_DEPARTMENT", description = "部门信息表")
public class DepartmentBean extends ModelBean {

	@Column(pk = true, type = Type.变长文本, description = "部门编号", canNull = false, size = 32)
	private String departID = null;

	@Column(type = Type.变长文本, description = "部门名称", size = 30)
	private String departName = null;

	@Column(type = Type.变长文本, description = "部门位置", size = 100)
	private String departLocation = null;

	@Column(type = Type.变长文本, description = "部门描述", size = 250)
	private String departDiscrption;

	@Column(type = Type.变长文本, description = "部门编号", size = 32)
	private String parentID = null;

	@Column(type = Type.定长文本, description = "部门经理编号", size = 32)
	private String bossID = null;

	@Column(type = Type.定长文本, description = "部门经理姓名", size = 50)
	private String bossName = null;

	private List<DepartmentBean> children = new ArrayList<>();

	public String getDepartID() {
		return departID;
	}

	public void setDepartID(String departID) {
		this.departID = departID;
	}

	public String getDepartName() {
		return departName;
	}

	public void setDepartName(String departName) {
		this.departName = departName;
	}

	public String getDepartLocation() {
		return departLocation;
	}

	public void setDepartLocation(String departLocation) {
		this.departLocation = departLocation;
	}

	public String getDepartDiscrption() {
		return departDiscrption;
	}

	public void setDepartDiscrption(String departDiscrption) {
		this.departDiscrption = departDiscrption;
	}

	public String getParentID() {
		return parentID;
	}

	public void setParentID(String parentID) {
		this.parentID = parentID;
	}

	public String getBossID() {
		return bossID;
	}

	public void setBossID(String bossID) {
		this.bossID = bossID;
	}

	public String getBossName() {
		return bossName;
	}

	public void setBossName(String bossName) {
		this.bossName = bossName;
	}

	public List<DepartmentBean> getChildren() {
		return children;
	}

	public void setChildren(List<DepartmentBean> children) {
		this.children = children;
	}

}
